import 'package:flutter/material.dart';

class AppBar extends StatefulWidget implements PreferredSizeWidget {
  @override
  State<StatefulWidget> createState() {
    return AppBarState();
  }

  @override
  Size get preferredSize => Size.fromHeight(100.0);
}

class AppBarState extends State<AppBar> {
  @override
  Widget build(BuildContext context) {
    return Column(
      children: <Widget>[
        Container(
          height: MediaQuery.of(context).padding.top,
        ),
        Container(
          decoration: BoxDecoration(
            image: DecorationImage(
              image: NetworkImage("https://picsum.photos/300/200"),
            ),
          ),
        ),
      ],
    );
  }
}
